package com.github.thinwonton.showcase.springboot.springbatch.sample1;

import org.springframework.batch.item.ItemProcessor;

/**
 * 将字符串转为大写
 */
public class Processor implements ItemProcessor<String, String> {

    @Override
    public String process(String item) throws Exception {
        System.out.println("Processor process data");
        return item.toUpperCase();
    }

}